﻿<%@ WebHandler Language="C#" Class="GetNameList" %>

using System;
using System.Web;
using System.Data;
using Dos.ORM;

public class GetNameList : IHttpHandler
{

    public void ProcessRequest(HttpContext context)
    {
        context.Response.ContentType = "text/plain";
        DataTable dt = DBHelper.GetDataTable("select top 20 a.nickname, a.amount, a.addtime, b.title as tyname from temple_order a inner join temple_contents b on a.rallyid = b.id where a.flag = 1 and a.isdel = 0 and a.state = 1 order by addtime desc");
        context.Response.Write(JsonHelper.GetJson(dt));
    }

    public bool IsReusable
    {
        get { return false; }
    }

}